package cn.stylefeng.guns.modular.business.frequency.ordermodifydetail.model.param;

import cn.stylefeng.guns.core.pojo.base.param.BaseParam;

import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 订单修改记录明细表
 *
 * @author yujie
 * @date 2023/05/09 17:16
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class OrderModifyDetailParam extends BaseParam {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空",groups = {edit.class})
    private Long id;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 创建人
     */
    private Long createUser;

    /**
     * update_time
     */
    private Date updateTime;

    /**
     * update_user
     */
    private Long updateUser;

    /**
     * order_id
     */
    @NotNull(message = "order_id不能为空",groups = {add.class,edit.class})
    private Long orderId;

    /**
     * transport_id
     */
    @NotNull(message = "transport_id不能为空",groups = {add.class,edit.class})
    private Long transportId;

    /**
     * 修改的字段名称
     */
    @NotNull(message = "修改的字段名称不能为空",groups = {add.class,edit.class})
    private String column;

    /**
     * 修改的字段描述
     */
    @NotNull(message = "修改的字段描述不能为空",groups = {add.class,edit.class})
    private String columnDesc;

    /**
     * 修改后的值
     */
    @NotNull(message = "修改后的值不能为空",groups = {add.class,edit.class})
    private String value;

    /**
     * 修改前的值
     */
    @NotNull(message = "修改前的值不能为空",groups = {add.class,edit.class})
    private String oldValue;

    /**
     * 备注
     */
    @NotNull(message = "备注不能为空",groups = {add.class,edit.class})
    private String remark;

}
